package com.hospital.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hospital.pojo.Doctor;

/**
 * @Author:晓风残月Lx
 * @Date: 2022/11/19 10:57
 */
public interface DoctorService extends IService<Doctor> {

    // 通过用户名查信息
    Doctor getUserInfoByName(String userName);

    // 通过用户名查状态
    boolean selectByStatus(String userName);

    String getUserRoleInfo(String principal);

    Doctor getDoctor(String userName);

    Page<Doctor> getList(Page<Doctor> doctorPage);

    Page<Doctor> getListBySearchName(Page<Doctor> doctorPage, String searchName);

    Doctor getDoctorByInfo(String userName);

    boolean deleteById(Integer id);

    int changeStatus(Integer id,Integer status);

    boolean updateDoc(Doctor doctor);

    Doctor getOneById(Integer id);

    boolean updatePerson(Long id, String username, String password, String realname, String image);
}
